#include "iostream"
#include "Gun.h"
using namespace std;

// Gun类引出两个接口
void Gun::addBullet(int bullet_number)
{
    this->_bullet_count += bullet_number;
}

bool Gun::shoot()
{
    if (this->_bullet_count <= 0)
    {
        cout << "There is no Bullet" << endl;
        return false;
    }

    this->_bullet_count -= 1;
    cout << "Shoot successfully" << endl;
    return true;
}